package listeners;

import org.testng.IRetryAnalyzer;
import org.testng.ITestResult;

//定义重跑次数
public class ReRun implements IRetryAnalyzer {
        int index=0;
        int reRunCounts=1;

    public boolean retry(ITestResult iTestResult) {
        if(index<reRunCounts){
            index++;
            return true;
        }
        return false;
    }
}
